from django.contrib import admin

from lab.message.models import Message, UserMessageView


# Register your models here.

@admin.register(Message)
class MessageAdmin(admin.ModelAdmin):
    list_display = [field.name for field in Message._meta.fields]


@admin.register(UserMessageView)
class UserMessageViewAdmin(admin.ModelAdmin):
    list_display = [field.name for field in UserMessageView._meta.fields]